package com.forekonw.demo8;

public class Dog extends Pet {

    @Override
    public void toHospital() {
        this.setHealth(60);
        System.out.println("吃药药......");
    }

    @Override
    public void eat() {
        System.out.println("谁吃饭谁是狗......");
    }

    /**
     * dog新扩充的方法
     */
    public void game(){
        System.out.println("谁玩游戏谁是狗......");
    }
}
